import request from '@/utils/request'

// 查询书籍乐曲关系列表
export function listBookmusicrelation(query) {
  return request({
    url: '/system/bookmusicrelation/list',
    method: 'get',
    params: query
  })
}

// 查询书籍乐曲关系详细
export function getBookmusicrelation(id) {
  return request({
    url: '/system/bookmusicrelation/' + id,
    method: 'get'
  })
}

// 新增书籍乐曲关系
export function addBookmusicrelation(data) {
  return request({
    url: '/system/bookmusicrelation',
    method: 'post',
    data: data
  })
}

// 修改书籍乐曲关系
export function updateBookmusicrelation(data) {
  return request({
    url: '/system/bookmusicrelation',
    method: 'put',
    data: data
  })
}

// 删除书籍乐曲关系
export function delBookmusicrelation(id) {
  return request({
    url: '/system/bookmusicrelation/' + id,
    method: 'delete'
  })
}
